package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.AddGroup;
import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Track;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 股道管理业务对象 t_track
 *
 * @author Baichuan
 * @date 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Track.class, reverseConvertGenerate = false)
public class TrackBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 股道名称
     */
    @NotBlank(message = "股道名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 股道编号
     */
    @NotBlank(message = "股道编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 起始X坐标
     */
    @NotNull(message = "起始X坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long posXStart;

    /**
     * 结束X坐标
     */
    @NotNull(message = "结束X坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long posXEnd;

    /**
     * Y坐标
     */
    @NotNull(message = "Y坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long posY;

    /**
     * 宽度
     */
    @NotNull(message = "宽度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long width;

    /**
     * 绘制颜色
     */
    @NotBlank(message = "绘制颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String color;


}
